#!/usr/bin/env bash
set -euxo pipefail


# Get fonts from eigen s3 bucket
aws s3 cp s3://artsy-citadel/eigen/fonts.tar.gz ./fonts.tar.gz

# Extract fonts
mkdir -p ./fonts
tar -xvzf fonts.tar.gz -C ./fonts

# Android
cp ./fonts/android/* android/app/src/main/assets/fonts

# iOS
cp ./fonts/ios/* ios/Artsy/fonts
cp ./fonts/ios/* ios/Artsy/View_Controllers/Live_Auctions/Resources/Artsy/fonts


# Cleanup
rm -rf ./fonts.tar.gz
rm -rf ./fonts
